export default {
    data() {
        return {
            recharge: {},
            rechargeId: "",
            openid: "",
        }
    },
    components: {
    },
    methods: {
        getRecharge() {
            this.axios.get('/member/consume/info', {
                params: {
                    openid: this.openid,
                    id: this.rechargeId
                }
            }).then(res => {
                if (res.data.result) {
                    this.recharge = res.data.datas;
                }
                console.log(res)
            }, err => {
                console.log(err)
            })
        }
    },
    mounted() {
    },
    created() {
        this.rechargeId = this.$route.query.id;
        this.openid = sessionStorage.getItem("openId")
        this.getRecharge();
    },
}